package com.portal.cwegportal.model;

import io.swagger.annotations.ApiModelProperty;
import tk.mybatis.mapper.annotation.NameStyle;
import tk.mybatis.mapper.code.Style;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@NameStyle(Style.camelhumpAndLowercase)
@Table(name="release_scope")
@Entity
public class ReleaseScope {

    @Id
    @ApiModelProperty(value = "主键",example = "",required = false)
    private Long id;
    @ApiModelProperty(value = "对应主表的Key",example = "",required = false)
    private Long keyId;
    @ApiModelProperty(value = "创建时间",example = "",required = false)
    private Date gmtCreate;
    @ApiModelProperty(value = "修改时间",example = "",required = false)
    private Date gmtModified;
    @ApiModelProperty(value = "是否删除",example = "",required = false)
    @Column(name="is_deleted")
    private boolean deleted;
    @ApiModelProperty(value = "排序号",example = "",required = false)
    private Long sortNo;
    @ApiModelProperty(value = "部门名称",example = "",required = false)
    private String publishingDepartment;
    @ApiModelProperty(value = "部门ID",example = "",required = false)
    private String publishingDepartmentId;
    @ApiModelProperty(value = "创建人ID",example = "",required = false)
    private String creatorId;
    @ApiModelProperty(value = "创建人Code",example = "",required = false)
    private String creatorCode;
    @ApiModelProperty(value = "创建人Name",example = "",required = false)
    private String creatorName;
    @ApiModelProperty(value = "类型 1新闻2公告3发文4学院天地",example = "",required = false)
    private String publishType;

    public void setId(Long id) {
        this.id = id;
    }

    public void setKeyId(Long keyId) {
        this.keyId = keyId;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public void setSortNo(Long sortNo) {
        this.sortNo = sortNo;
    }

    public void setPublishingDepartment(String publishingDepartment) {
        this.publishingDepartment = publishingDepartment;
    }

    public void setPublishingDepartmentId(String publishingDepartmentId) {
        this.publishingDepartmentId = publishingDepartmentId;
    }

    public void setCreatorId(String creatorId) {
        this.creatorId = creatorId;
    }

    public void setCreatorCode(String creatorCode) {
        this.creatorCode = creatorCode;
    }


    public Long getId() {
        return id;
    }

    public Long getKeyId() {
        return keyId;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public Long getSortNo() {
        return sortNo;
    }

    public String getPublishingDepartment() {
        return publishingDepartment;
    }

    public String getPublishingDepartmentId() {
        return publishingDepartmentId;
    }

    public String getCreatorId() {
        return creatorId;
    }

    public String getCreatorCode() {
        return creatorCode;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public String getPublishType() {
        return publishType;
    }

    public void setPublishType(String publishType) {
        this.publishType = publishType;
    }

}
